package com.fit.service;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;

import com.fit.interfaces.Jewelry;

public class JewelrysBean implements Jewelrys{
	
	private Map<String, Jewelry> jewelrys = new HashMap<String, Jewelry>();
	


	public Collection<Jewelry> retrive() {
				return jewelrys.values();
	}

	public Jewelry retriveSingleJewelry(String jewelryName) {
		 return jewelrys.get(jewelryName);
	}

	public Jewelry save(Jewelry jewelry) {
		return jewelrys.put(jewelry.getJewelryName(), jewelry);
	}
	

}
